#!/bin/bash

apt -y update
apt -y install apt-transport-https ca-certificates curl software-properties-common

#curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg
#add-apt-repository "deb [arch=amd64 signed-by=/usr/share/keyrings/docker-archive-keyring.gpg] https://mirrors.tuna.tsinghua.edu.cn/docker-ce/linux/$(lsb_release -is | tr 'A-Z' 'a-z') $(lsb_release -cs) stable"

#curl -fsSL "https://mirrors.aliyun.com/docker-ce/linux/$(lsb_release -is | tr 'A-Z' 'a-z')/gpg" | sudo apt-key add -
#add-apt-repository "deb [arch=amd64] https://mirrors.aliyun.com/docker-ce/linux/$(lsb_release -is | tr 'A-Z' 'a-z') $(lsb_release -cs) stable"

#curl -fsSL "https://mirrors.tuna.tsinghua.edu.cn/docker-ce/linux/$(lsb_release -is | tr 'A-Z' 'a-z')/gpg" | sudo gpg --dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg
#add-apt-repository "deb [arch=amd64 signed-by=/usr/share/keyrings/docker-archive-keyring.gpg] https://mirrors.tuna.tsinghua.edu.cn/docker-ce/linux/$(lsb_release -is | tr 'A-Z' 'a-z') $(lsb_release -cs) stable"

curl -fsSL "https://mirrors.tuna.tsinghua.edu.cn/docker-ce/linux/$(lsb_release -is | tr 'A-Z' 'a-z')/gpg" | sudo apt-key add -
add-apt-repository "deb [arch=amd64] https://mirrors.tuna.tsinghua.edu.cn/docker-ce/linux/$(lsb_release -is | tr 'A-Z' 'a-z') $(lsb_release -cs) stable"

apt -y update
apt -y install docker-ce python3-pip
pip3 install --upgrade pip
pip3 install docker-compose
